<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>订单确认 - SXT商城</title>
		<%@ include file="/common/include/title.jsp"%>
		<link type="text/css" href="${rootpath }/css/my.css" rel="stylesheet">
		<link type="text/css" href="${rootpath }/css/info.css" rel="stylesheet">
	</head>
	<body>
		<div id="doc">
			<%@ include file="/common/include/header.jsp"%>
			<div id="s_bdw">
				<div id="s_bd">
					<div class="stepflow">
						<img src="${rootpath}/images/cartinforstep.gif" alt="" height="32" width="980">
					</div>
					<div class="infotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">收货地址</td>
									<td class="summary">
										<table class="address" width="100%">
											<tbody>
												<c:forEach items="${requestScope.usersAddressList }" var="address" varStatus="stat">
													<tr>
														<td><input type="radio" name="addId" value="${address.id }" ${address.isDef == '1' ? 'checked' : '' }/></td>
														<td>
															名称:${address.name }&nbsp;&nbsp;
															收货人:${address.contact }&nbsp;&nbsp;
															手机号:${address.phone }&nbsp;&nbsp;
															详细地址:${address.address }&nbsp;&nbsp;
															邮编:${address.zipCode }&nbsp;&nbsp;
														</td>
													</tr>
												</c:forEach>
												<tr>
													<td colspan="2">
														<a href="${rootpath }/head/users/addressList.htm" target="_blank" class="btntext">新增</a>
													</td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--infotable end-->
			
					<script type="text/javascript">
						$(function() {
							$(".focutext00").focusText();
							$(".focutext01").focusText();
							$(".focutext02").focusText();
							$(".focutext03").focusText();
						});
					</script>
					
					<%--
					<div class="infotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">配送方式</td>
									<td class="summary">
										<table class="address" width="100%">
											<tbody>
												<tr bgcolor="fff7eb">
													<td width="10px" valign="top"></td>
													<td width="40px" valign="top"><input name="" id="yxkd"
														value="" type="radio"></td>
													<td width="120px" valign="top"><label for="yxkd">易讯快递</label></td>
													<td class="red" width="80px" valign="top">免费</td>
													<td valign="top">支持<span class="red">货到付款及POS机刷卡，上海市区一日三送</span>，同时也支持江苏省(南京、苏州、无锡、南通)、浙江省(杭州、嘉兴、宁波)及安徽省(合肥)的部分地区(查看配送区域及说明
														)<br>送货时间：<select class="selectbox" name="" id=""><option
																value="">2011-11-06 星期日</option></select> <select class="selectbox"
														name="" id=""><option value="">下午
																14:00-18:00</option></select></td>
												</tr>
												<tr>
													<td height="20px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td colspan="4"><input name="" value="" id=""
														type="checkbox"> 收货时若网快递无法联系上我，我同意由朋友、同事或家人代收</td>
												</tr>
												<tr>
													<td height="20px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td colspan="4"><input value="确认配送方式" id="" name=""
														class="btntext" type="button"></td>
												</tr>
												<tr>
													<td height="40px"></td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--infotable end-->
			
					<div class="infotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">支付方式</td>
									<td class="summary">
										<table class="address" width="100%">
											<tbody>
												<tr>
													<td width="10px" valign="top"></td>
													<td width="40px" valign="top"><input name="zf" id="df"
														value="" type="radio"></td>
													<td width="110px" valign="top"><label for="df">货到付款</label></td>
													<td valign="top">货到付款,<span class="red">易讯快递可刷卡</span>，免手续费；<span
														class="red">第三方易讯快递只能使用现金；可使用支票</span><br>(1.支票抬头：上海易讯电子商务发展有限公司；2.支票限额：每个订单支票支付限额为4万；3.暂不接受非上海公司的支票)
													</td>
												</tr>
												<tr>
													<td height="10px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td width="40px" valign="top"><input name="zf" id="yhf"
														value="" type="radio"></td>
													<td valign="top"><label for="yhf">银行电汇</label></td>
													<td valign="top">通过银行转账或现金直接存入易讯网指定帐号（查看汇款单填写范本），<span
														class="red">[汇款用途]-栏需注明订单号</span></td>
												</tr>
												<tr>
													<td height="10px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td width="40px" valign="top"><input name="zf" id="opay"
														value="" type="radio"></td>
													<td valign="top"><label for="opay">在线支付</label></td>
													<td valign="top">通过网上银行或支付平台在线付款
														<table>
															<tbody>
																<tr>
																	<td><input name="bank" id="bank01" value=""
																		class="bankicon" type="radio"><label for="bank01"><img
																			src="${rootpath}/images/bank/bank01.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank02" value=""
																		class="bankicon" type="radio"><label for="bank02"><img
																			src="${rootpath}/images/bank/bank02.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank03" value=""
																		class="bankicon" type="radio"><label for="bank03"><img
																			src="${rootpath}/images/bank/bank03.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank04" value=""
																		class="bankicon" type="radio"><label for="bank04"><img
																			src="${rootpath}/images/bank/bank04.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank05" value=""
																		class="bankicon" type="radio"><label for="bank05"><img
																			src="${rootpath}/images/bank/bank05.gif" alt="" height="32"
																			width="96"></label></td>
																</tr>
																<tr>
																	<td><input name="bank" id="bank06" value=""
																		class="bankicon" type="radio"><label for="bank06"><img
																			src="${rootpath}/images/bank/bank06.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank07" value=""
																		class="bankicon" type="radio"><label for="bank07"><img
																			src="${rootpath}/images/bank/bank07.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank08" value=""
																		class="bankicon" type="radio"><label for="bank08"><img
																			src="${rootpath}/images/bank/bank08.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank09" value=""
																		class="bankicon" type="radio"><label for="bank09"><img
																			src="${rootpath}/images/bank/bank09.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank10" value=""
																		class="bankicon" type="radio"><label for="bank10"><img
																			src="${rootpath}/images/bank/bank10.gif" alt="" height="32"
																			width="96"></label></td>
																</tr>
																<tr>
																	<td><input name="bank" id="bank11" value=""
																		class="bankicon" type="radio"><label for="bank11"><img
																			src="${rootpath}/images/bank/bank11.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank12" value=""
																		class="bankicon" type="radio"><label for="bank12"><img
																			src="${rootpath}/images/bank/bank12.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank13" value=""
																		class="bankicon" type="radio"><label for="bank13"><img
																			src="${rootpath}/images/bank/bank13.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank14" value=""
																		class="bankicon" type="radio"><label for="bank14"><img
																			src="${rootpath}/images/bank/bank14.gif" alt="" height="32"
																			width="96"></label></td>
																</tr>
																<tr>
																	<td><input name="bank" id="bank15" value=""
																		class="bankicon" type="radio"><label for="bank15"><img
																			src="${rootpath}/images/bank/bank15.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank16" value=""
																		class="bankicon" type="radio"><label for="bank16"><img
																			src="${rootpath}/images/bank/bank16.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank17" value=""
																		class="bankicon" type="radio"><label for="bank17"><img
																			src="${rootpath}/images/bank/bank17.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank18" value=""
																		class="bankicon" type="radio"><label for="bank18"><img
																			src="${rootpath}/images/bank/bank18.gif" alt="" height="32"
																			width="96"></label></td>
																	<td><input name="bank" id="bank19" value=""
																		class="bankicon" type="radio"><label for="bank19"><img
																			src="${rootpath}/images/bank/bank19.gif" alt="" height="32"
																			width="96"></label></td>
																</tr>
																<tr>
																	<td><input name="bank" id="bank20" value=""
																		class="bankicon" type="radio"><label for="bank20"><img
																			src="${rootpath}/images/bank/bank20.gif" alt="" height="32"
																			width="96"></label></td>
																</tr>
															</tbody>
														</table>
													</td>
												</tr>
												<tr>
													<td height="20px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td colspan="4"><input value="确认支付方式" id="" name=""
														class="btntext" type="button"></td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--infotable end-->
					
			
					<div class="infotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">发票信息</td>
									<td class="summary">
										<table class="address" width="100%">
											<tbody>
												<tr>
													<td width="10px"></td>
													<td width="50px"><input name="1" id="fpgr" value=""
														type="radio"></td>
													<td><label for="fpgr">商业零售发票(个人)</label><span
														style="color: #ababab;">(发票抬头：徐威)</span></td>
													<td width="100px"></td>
													<td><a href="#">修改</a> | <a href="#">删除</a></td>
													<td width="200px"></td>
												</tr>
												<tr>
													<td height="10px"></td>
												</tr>
												<tr bgcolor="#fff7eb">
													<td width="10px"></td>
													<td width="50px"><input name="1" id="" value=""
														type="radio"></td>
													<td colspan="4">
														<p>
															发票类型：<input name="fp2" id="" value="" type="radio">
															商业零售发票 <input name="fp2" id="" value="" type="radio">
															增值税专用发票
														</p>
														<p>
															发票抬头：<input name="tt0" id="" value="" type="radio">
															个人 <input name="tt0" id="" value="" type="radio"> 单位
														</p>
														<p>
															个人姓名：<input name="" value="" id="" style="width: 340px;"
																class="stext" type="text">
														</p>
													</td>
												</tr>
												<tr>
													<td height="10px"></td>
												</tr>
												<tr>
													<td height="10px"></td>
													<td colspan="5">发票内容： <input name="mx" id="" value=""
														type="radio"> 商品明细
													</td>
												</tr>
												<tr>
													<td height="20px"></td>
												</tr>
												<tr>
													<td width="10px" valign="top"></td>
													<td colspan="4"><input value="确认发票信息" id="" name=""
														class="btntext" type="button"></td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--infotable end-->
					 --%>
			
					<div class="catinfotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">购物清单<br>
									<a style="font-size: 12px; font-weight: normal;" class="blue"
										href="#">更改</a></td>
									<td class="summary">
										<table class="catlist" width="100%">
											<tbody>
												<tr bgcolor="#f3f3f3">
													<th>购物车中的商品</th>
													<th>易迅价</th>
													<th>返现</th>
													<th>送积分</th>
													<th>购买数量</th>
													<th>发货时间</th>
												</tr>
												<c:set value="0" var="totalPrice"/>
												<c:set value="0" var="totalNum"/>
												<c:set value="0" var="totalFan"/>
												<c:forEach items="${requestScope.usersCarList }" var="usersCar" varStatus="stat">
													<c:set value="${totalPrice + usersCar.goods.price * usersCar.num }" var="totalPrice"/>
													<c:set value="${totalFan + 0 * usersCar.num }" var="totalFan"/>
													<c:set value="${totalNum + usersCar.num }" var="totalNum"/>
													<tr>
														<td>
															<a href="${rootpath }/goods/${usersCar.goods.id}.htm" target="_blank" title="${usersCar.goods.name }">
																${fn:substring(usersCar.goods.name,0,20) }
															</a>
															<br>商品编号：${usersCar.goods.url }
														</td>
														<td class="red">￥<fmt:formatNumber value="${usersCar.goods.price }" pattern="#.00"/></td>
														<td>￥0.00</td>
														<td>0</td>
														<td>${usersCar.num }</td>
														<td>${usersCar.goods.remainNumStr }</td>
													</tr>
												</c:forEach>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--catinfotable end-->
			
					<div class="catinfotable">
						<table width="100%">
							<tbody>
								<tr>
									<td class="tit">订单结算</td>
									<td class="summary">
										<div class="f-l" style="width: 640px;">
											<table class="ddbox" width="100%">
												<tbody>
													<tr>
														<td width="110px" valign="top" align="right">备注：</td>
														<td><textarea name="note" id="" class="ltext"></textarea></td>
													</tr>
													<%--
													<tr>
														<td valign="top" align="right">使用优惠券：</td>
														<td><input name="" value="" id="" class="stext f-l"
															style="width: 227px;" type="text"><a
															style="margin-left: 10px; display: inline;" class="f-l"
															href="#"><img src="${rootpath}/images/shiyong.gif" alt="使用"
																height="24" width="62"></a>
														<div class="clear"></div>
															<p>
																优惠券一旦使用，在订单生成后，将无法退回。如您取消订单，订单中所使用的优惠券将永久失效，无法找回。<a
																	class="blue" href="#">详见帮助中心优惠券使用细则第4条</a>
															</p></td>
													</tr>
													<tr>
														<td align="right"><input name="" id="thispl" value=""
															type="checkbox"> <label for="thispl"><img
																src="${rootpath}/images/lpicon.gif"></label></td>
														<td></td>
													</tr>
													<tr>
														<td valign="top" align="right">赠言：</td>
														<td><textarea name="" id="" class="ltext"></textarea></td>
													</tr>
													 --%>
												</tbody>
											</table>
										</div>
										<div class="f-r"
											style="width: 170px; padding: 0 15px; background: #f3f3f3;">
											<table class="totable" width="100%">
												<tbody>
													<tr>
														<td width="80px">商品总重：</td>
														<td align="right">3.640千克</td>
													</tr>
													<tr>
														<td>商品总价：</td>
														<td align="right">￥<fmt:formatNumber value="${totalPrice}" pattern="#.00"/></td>
													</tr>
													<tr>
														<td>运费金额：</td>
														<td align="right">￥0.00</td>
													</tr>
													<tr>
														<td>积分抵扣：</td>
														<td align="right">￥0.00</td>
													</tr>
													<tr>
														<td>返现优惠：</td>
														<td align="right">￥${totalFan }</td>
													</tr>
													<tr>
														<td>手&nbsp;&nbsp;续&nbsp;&nbsp;费：</td>
														<td align="right">￥0.00</td>
													</tr>
													<tr>
														<td>优&nbsp;&nbsp;惠&nbsp;&nbsp;券：</td>
														<td align="right">￥0.00</td>
													</tr>
													<tr>
														<td>合&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;计：</td>
														<td align="right"><strong
															style="font-size: 18px; color: #dc0000;">￥<fmt:formatNumber value="${totalPrice-totalFan }" pattern="#.00"/></strong></td>
													</tr>
													<tr>
														<td colspan="2" align="right"><input name="" id=""
															value="" class="btnimg" type="submit"></td>
													</tr>
													<tr>
														<td height="10px"></td>
													</tr>
												</tbody>
											</table>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--catinfotable end-->
			
				</div>
				<!--s_bd end-->
			</div>
			<%@ include file="/common/include/footer.jsp"%>
		</div>
	</body>
</html>